package com.dys.form;

import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @className: com.dys.form.AirAddForm
 * @description: 添加空气质量信息表单
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/04/10 19:23
 */
public class AirAddForm {

    /**
     * 区域编号
     */
    @NotNull(message = "区域为必填项")
    private Integer districtId;

    /**
     * 检测时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "检测时间为必填项")
    private Date monitorTime;

    /**
     * pm10
     */
    @NotNull(message = "pm10为必填项")
    private Integer pm10;

    /**
     * pm2.5
     */
    @NotNull(message = "pm2.5为必填项")
    private Integer pm25;

    /**
     * 检测站
     */
    @NotBlank(message = "检测站为必填项")
    private String monitoringStation;


    public Integer getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Integer districtId) {
        this.districtId = districtId;
    }

    public Date getMonitorTime() {
        return monitorTime;
    }

    public void setMonitorTime(Date monitorTime) {
        this.monitorTime = monitorTime;
    }

    public Integer getPm10() {
        return pm10;
    }

    public void setPm10(Integer pm10) {
        this.pm10 = pm10;
    }

    public Integer getPm25() {
        return pm25;
    }

    public void setPm25(Integer pm25) {
        this.pm25 = pm25;
    }

    public String getMonitoringStation() {
        return monitoringStation;
    }

    public void setMonitoringStation(String monitoringStation) {
        this.monitoringStation = monitoringStation;
    }

    @Override
    public String toString() {
        return "AirAddForm{" +
                "districtId=" + districtId +
                ", monitorTime=" + monitorTime +
                ", pm10=" + pm10 +
                ", pm25=" + pm25 +
                ", monitoringStation='" + monitoringStation + '\'' +
                '}';
    }
}
